{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "基本信息" %}
{% block title %}
    {{ title }}
{% endblock %}

{% block user_main %}
    {#{{ dump(school) }}#}
    <form class="form-horizontal" role="form"  method="post">
        <input type="hidden" name="id" value="{{ school.id }}"/>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <div class="col-md-2 text-right"><label class="control-label" for="name">学校名称:</label></div>
                    <div class="col-md-10"><p>{{ school.name }}</p></div>
                </div>
                <div class="form-group">
                    <div class="col-md-2 text-right"><label class="control-label" for="intro">学校简介</label></div>
                    <div class="col-md-10">
                        <textarea
                                name="intro" class="form-control" rows="11" id="intro" placeholder="课程简介"
                                >{% if school.intro is defined %}{{ school.intro }}{% endif %}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-2 text-right"><label class="control-label" for="nickName">当前LOGO</label></div>
                    <div class="col-md-10">
                        <img src="{{ asset(school.logo) }}" width="150" height="150"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-2 text-right"><label class="control-label" for="newLogo">上传LOGO</label></div>
                    <div class="col-md-10">
                        <input type="hidden" name="newLogo" class="MyUpload"/>
                    </div>
                </div>

            </div>
            <p class="buttons-margin-horizontal">
                <input type="submit" class="btn btn-theme btn-green" value="提交" />
            </p>
        </div>
    </form>
{% endblock %}

{% block myJs %}
    {% include "AssetsUploadBundle:MyUpload:inc.html.twig" %}
{% endblock %}